package edu.xpu.compute.recommend.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import edu.xpu.compute.recommend.entity.SysUser;

@Repository
public interface SysUserRepository extends JpaRepository<SysUser, Long>
		, JpaSpecificationExecutor<SysUser>{
	
	public SysUser findTop1ByOrderByIdDesc();
	/**
	 * 根据用户名和密码查找用户
	 * @param name
	 * @param pwd
	 * @return
	 */
	public List<SysUser> findByNameAndPwd(String name, String pwd);
}
